package com.kcs.common.utils;

/**
 *
 * @author BeeZa
 */
public class Constant {
	
	/*Input Database Type this below source-code.*/
    public static final String SYBASE = "syb";
    public static final String ORACLE = "ora";
    public static final String MSSQL = "mssql";
    
    public static final String FROM = "from";
    public static final String TO = "to";
    
    /*Input other properties this below source-code.*/
    public static final String PROP_DATABASE = "props.DBResources";
    public static final String PROP_OTHER = "props.OtherResources";
    public static final String PROP_MAIL = "props.MailResources";
    public static final String PROP_MESSAGE = "props.WSMessage";
    public static final String PROP_REPORT = "props.ReportMessage";
    public static final String PROP_BLEVENT = "props.bl-event-config";
    //--20/11/2013 by Aon
    public static final String PROP_CONFIG_SYSTEM = "props.configSystem";
    
    /*Control display color when error on web page*/
 	public static final String ERR_ATTR = "error";
 
	public static final String SESSION_USERID = "user_id";
	public static final String SESSION_PASSWORD = "password";
	public static final String SESSION_USERNAME = "user_name";
 	public static final String SESSION_ACCESSTIME = "last_access_time";
 	public static final String SESSION_PREOPETIME = "pre_operation_time";
 	public static final String SESSION_AUTHORIZEDMENULIST = "menu_list";
 	public static final String EXEC_TYPE_SCREEN = "SCR";
	public static final String EXEC_TYPE_REPORT = "RPT";
	public static final String EXEC_TYPE_CSV = "CSV";
	public static final String EXEC_TYPE_XLS = "XLS";
	public static final String ARGS_MESSAGE = "@arg";
	public static final String LOGGER_WEBSERVICE = "wsLogger";
	public static final String LOGGER_APPLICATION = "appLogger";
	public static final String LOGGER_COMMON = "commonLogger";
	
	public static final String FX_MAGIN = "fxmagin";
	
	//-- 18/09/2013 by Aon : Login
	public static final String ERR_USER_ID_EMPTY = "User ID is empty!";
	public static final String ERR_PASSWORD_EMPTY = "Password is empty!";
	public static final String ERR_USER_NOT_FOUND = "Wrong UserID or Password!";
	public static final String ERR_ROLE_ID_EMPTY = "Role ID is empty!";
	
	public static final String KEY_RESULT = "KEY_RESULT";
	public static final String KEY_RESULT_TRUE = "KEY_RESULT_TRUE";
	public static final String KEY_RESULT_FALSE = "KEY_RESULT_FALSE";
	public static final String KEY_FORM = "KEY_FORM";
	
	public static final String HEADER_MENU_ATTR = "headerMenu";
	public static final String LOGIN_DATA_ATTR = "loginData";
	
	public static final String HEADER_MENU_SESSION = "headerMenuSession";
	public static final String LOGIN_DATA_SESSION = "loginDataSession";
	
	//-- 23/09/2013 by Aon : SCR003 Setup Role Profile
	public static final String ERR_FUNCTION_LIST_EMPTY = "No data found";
	public static final String FUCTION_LIST_ATTR = "KEY_FUNCTION_LIST";
	public static final String ERR_INSERT_M_USERS_AUTH = "Cannot insert m_users_auth";
	
	//-- 27/09/2013 by Aon : SCR014 Import Deposit/Withdraw to FX Margin
	// msg_code = 00003
	public static final String ERR_IMPORT_DW_LIST_EMPTY = "No data found";	
	// msg_code = 00002
	public static final String ERR_SEARCH_IMPORT_DW_CONDITION = "Please fill at least 1 condition.";
	public static final String IMPORT_DW_LIST_ATTR = "KEY_IMPORT_DW_LIST";
	public static final String EXCEL_IMPORT_DW_FILENAME = "importdw.xls";
	public static final String EXCEL_DAILY_REPORT_FILENAME = "dailyReport.xls";
	public static final String EXCEL_PRE_SETTLEMENT_RISK_DETAIL_FILENAME = "preSettlementRiskDetailReport.xls";
	public static final String EXCEL_OUT_STANDING_FILENAME = "outStandingReport.xls";
	public static final String SEARCH_TYPE_ALL = "SEARCH_TYPE_ALL";
	public static final String SEARCH_TYPE_DIFF = "SEARCH_TYPE_DIFF";
	public static final String EXCEL_DIFF_IMPORT_DW_FILENAME = "DiffReport.xls";
	
	//-- 01/10/2013 by Aon : SCR007 Check FX Margin Limit&Order
	public static final String ERR_CIF_NO_EMPTY = "cifNo is Empty";
	public static final String COMPLETE_ATTR = "COMPLETE_ATTR";
	// msg_code = 00009
	public static final String ERR_OVER_LIMIT_CUSTOMER_AND_FX = "Over Customer &FX Margin Limit";
	// msg_code = 00010
	public static final String ERR_OVER_LIMIT_FX = "Over FX Margin Limit : Deposit Top Up(THB) = #,###.00";
	
	//TABLE FXMARGIN
	public static final String USERS 		= "m_users";
	public static final String CUST_INFO 	= "m_cust_info";
	public static final String SETUP_PARAM 	= "m_setup_param";
	public static final String ACC_ONLINE 	= "t_acc_online";
    public static final String DEALS_SETTLE = "t_deals_settle";
    public static final String PRE_ORDER	= "t_pre_order";
    
    //-- 04/10/2013 by Aon : SCR010 List of Forward Contract
  	public static final String FORWARD_CONTRACT_LIST_ATTR = "FORWARD_CONTRACT_LIST_ATTR";
  	public static final String ERR_SEARCH_FC_LIST_CONDITION = "Please fill at least 1 condition.";
	
	//-- 09/10/2013 by Aon
  	public static final String ERR_DATE_FORMAT = "Date Format must be dd/mm/YYYY";
  	public static final String ERR_DATE_BETWEEN = "Wrong StartDate to EndDate Range";
  	
  	//--- 15/10/2013 by Aon
  	public static final String SHOW_RESULT = "SHOW_RESULT";
  	
  	//--- 17/10/2013 by Aon
  	// msg_code = 00001
  	public static final String ERR_REQUIRED_COMPLETE = "Please fill required data in complete";
  	
  	//--- 25/10/2013 by Aon
  	public static final String EXCEL_FORWARD_CONTRACT_FILENAME = "forwardContractList.xls";
  	
  	public static final String NOT_EMPTY	= "NOT_EMPTY";
  	
  	//--- 31/10/2013 by Aon
  	public static final String LOG_FX = "LogFx";
  	public static final String LOG_DEAL_CENTER = "LogDc";
  	public static final String LOG_CBS = "LogCbs";
  	public static final String LOG_RETAD = "LogRetad";
  	public static final String LOG_IMPORT_RATE = "LogImportRate";
  	
  	//--- 01/11/2013 by Aon
  	public static final String MSG_00001 = "MSG_00001";
  	public static final String MSG_00002 = "MSG_00002";
  	public static final String MSG_00003 = "MSG_00003";
  	public static final String MSG_00004 = "MSG_00004";
  	public static final String MSG_00005 = "MSG_00005";
  	public static final String MSG_00006 = "MSG_00006";
  	public static final String MSG_00007 = "MSG_00007";
  	public static final String MSG_00008 = "MSG_00008";
  	public static final String MSG_00009 = "MSG_00009";
  	public static final String MSG_00010 = "MSG_00010";
  	public static final String MSG_00011 = "MSG_00011";
  	
  	//--- 13/11/2013 by Aon
  	public static final String ERR_SEARCH_IMPORT_RR_AND_MM_CONDITION = "Please fill required data in complete";
  	
  	public static final String ACTIVE_STATUS = "A";
  	public static final String INACTIVE_STATUS = "I";
  	
  	public static final String PERIOD_TODAY = "TODAY";
  	public static final String PERIOD_TOM	= "TOM";
  	public static final String PERIOD_SPOT	= "SPOT";
  	public static final String PERIOD_1W	= "1W";
  	public static final String PERIOD_2W 	= "2W";
  	public static final String PERIOD_1M 	= "1M";
  	public static final String PERIOD_2M 	= "2M";
  	public static final String PERIOD_3M	= "3M";
  	public static final String PERIOD_6M 	= "6M";
  	public static final String PERIOD_9M 	= "9M";
  	public static final String PERIOD_1Y 	= "1Y";
  	public static final String PERIOD_2Y 	= "2Y";
  	
  	public static final String[] ALL_RATE_PERIOD = {PERIOD_TODAY,PERIOD_TOM,PERIOD_SPOT,PERIOD_1W,PERIOD_2W
  													,PERIOD_1M,PERIOD_2M,PERIOD_3M,PERIOD_6M,PERIOD_9M
  													,PERIOD_1Y,PERIOD_2Y};

//  	
  	public static final int IND_RATE_VALUE_START_AT   = 2;
  	public static final int IND_PERIOD_VALUE_START_AT = 14;
  	public static final String CSV_SPLIT	= ",";
  	
  	public static final String FILE_PATH_UNIX = "/app/fxm-jboss/jboss-as/server/fxm-jboss/log/upload";
  	public static final String RATE_CUT_OFF_TIME = "17:00:00";
  	
  	//18/11/2013 by Aon
  	public static final String OVER_LIMIT_CUST_ATTR = "OVER_LIMIT_CUST_ATTR";
  	public static final String OVER_LIMIT_FX_ATTR = "OVER_LIMIT_FX_ATTR";
  	public static final String ERR_OVER_LIMIT_CUSTOMER = "Over Customer Limit";

  	//--- 25/11/2013 by Aon
  	public static final String PDF_OVER_LIMIT_SUMMARY_FILENAME = "overLimitSummaryReport.pdf";
  	public static final String EXCEL_OVER_LIMIT_SUMMARY_FILENAME = "overLimitSummaryReport.xls";
  	

  	//--- 25/11/2013 by Teeruch.p
  	public static final String PDF_PRE_SETTLEMENT_FILENAME = "preSettlement.pdf";
  	
  //--- 02/12/2013 by Teeruch.p
  	public static final String PDF_OUT_STANDING_FILENAME = "outStanding.pdf";
}

